find the maximum repeating number